package com.bestescortbedsystem.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * ses_bed_message
 * @author 
 */
@Data
public class SesBedMessage implements Serializable {

    private SesHospitalinfo sesHospitalinfo;

    private SesHospitalinfoDepartment sesHospitalinfoDepartment;

    private SesBedType sesBedType;

    /**
     * ID,主键PK
     */
    private Long bedmessageid;

    /**
     * 租借用户ID
     */
    private Long userid;

    /**
     * 股东ID
     */
    private Long usershareholderid;

    /**
     * 一级分销商ID
     */
    private Long userdistributorsid1;

    /**
     * 二级分销商ID
     */
    private Long userdistributorsid2;

    /**
     * 维修人员ID
     */
    private Long usermaintenanceid;

    /**
     * 床基本信息表ID
     */
    private Long bedBedTypeid;

    /**
     * 医院表ID
     */
    private Long hospitalinfoid;

    /**
     * 医院科室表ID
     */
    private Long hospitalinfoDepartmentid;

    /**
     * 收益分成表ID
     */
    private Long revenueid;

    /**
     * 备注
     */
    private String bedmessagereamrk;

    private static final long serialVersionUID = 1L;

    public Long getBedmessageid() {
        return bedmessageid;
    }

    public void setBedmessageid(Long bedmessageid) {
        this.bedmessageid = bedmessageid;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public Long getUsershareholderid() {
        return usershareholderid;
    }

    public void setUsershareholderid(Long usershareholderid) {
        this.usershareholderid = usershareholderid;
    }

    public Long getUserdistributorsid1() {
        return userdistributorsid1;
    }

    public void setUserdistributorsid1(Long userdistributorsid1) {
        this.userdistributorsid1 = userdistributorsid1;
    }

    public Long getUserdistributorsid2() {
        return userdistributorsid2;
    }

    public void setUserdistributorsid2(Long userdistributorsid2) {
        this.userdistributorsid2 = userdistributorsid2;
    }

    public Long getUsermaintenanceid() {
        return usermaintenanceid;
    }

    public void setUsermaintenanceid(Long usermaintenanceid) {
        this.usermaintenanceid = usermaintenanceid;
    }

    public Long getBedBedTypeid() {
        return bedBedTypeid;
    }

    public void setBedBedTypeid(Long bedBedTypeid) {
        this.bedBedTypeid = bedBedTypeid;
    }

    public Long getHospitalinfoid() {
        return hospitalinfoid;
    }

    public void setHospitalinfoid(Long hospitalinfoid) {
        this.hospitalinfoid = hospitalinfoid;
    }

    public Long getHospitalinfoDepartmentid() {
        return hospitalinfoDepartmentid;
    }

    public void setHospitalinfoDepartmentid(Long hospitalinfoDepartmentid) {
        this.hospitalinfoDepartmentid = hospitalinfoDepartmentid;
    }

    public Long getRevenueid() {
        return revenueid;
    }

    public void setRevenueid(Long revenueid) {
        this.revenueid = revenueid;
    }

    public String getBedmessagereamrk() {
        return bedmessagereamrk;
    }

    public void setBedmessagereamrk(String bedmessagereamrk) {
        this.bedmessagereamrk = bedmessagereamrk;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SesBedMessage other = (SesBedMessage) that;
        return (this.getBedmessageid() == null ? other.getBedmessageid() == null : this.getBedmessageid().equals(other.getBedmessageid()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getUsershareholderid() == null ? other.getUsershareholderid() == null : this.getUsershareholderid().equals(other.getUsershareholderid()))
            && (this.getUserdistributorsid1() == null ? other.getUserdistributorsid1() == null : this.getUserdistributorsid1().equals(other.getUserdistributorsid1()))
            && (this.getUserdistributorsid2() == null ? other.getUserdistributorsid2() == null : this.getUserdistributorsid2().equals(other.getUserdistributorsid2()))
            && (this.getUsermaintenanceid() == null ? other.getUsermaintenanceid() == null : this.getUsermaintenanceid().equals(other.getUsermaintenanceid()))
            && (this.getBedBedTypeid() == null ? other.getBedBedTypeid() == null : this.getBedBedTypeid().equals(other.getBedBedTypeid()))
            && (this.getHospitalinfoid() == null ? other.getHospitalinfoid() == null : this.getHospitalinfoid().equals(other.getHospitalinfoid()))
            && (this.getHospitalinfoDepartmentid() == null ? other.getHospitalinfoDepartmentid() == null : this.getHospitalinfoDepartmentid().equals(other.getHospitalinfoDepartmentid()))
            && (this.getRevenueid() == null ? other.getRevenueid() == null : this.getRevenueid().equals(other.getRevenueid()))
            && (this.getBedmessagereamrk() == null ? other.getBedmessagereamrk() == null : this.getBedmessagereamrk().equals(other.getBedmessagereamrk()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBedmessageid() == null) ? 0 : getBedmessageid().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getUsershareholderid() == null) ? 0 : getUsershareholderid().hashCode());
        result = prime * result + ((getUserdistributorsid1() == null) ? 0 : getUserdistributorsid1().hashCode());
        result = prime * result + ((getUserdistributorsid2() == null) ? 0 : getUserdistributorsid2().hashCode());
        result = prime * result + ((getUsermaintenanceid() == null) ? 0 : getUsermaintenanceid().hashCode());
        result = prime * result + ((getBedBedTypeid() == null) ? 0 : getBedBedTypeid().hashCode());
        result = prime * result + ((getHospitalinfoid() == null) ? 0 : getHospitalinfoid().hashCode());
        result = prime * result + ((getHospitalinfoDepartmentid() == null) ? 0 : getHospitalinfoDepartmentid().hashCode());
        result = prime * result + ((getRevenueid() == null) ? 0 : getRevenueid().hashCode());
        result = prime * result + ((getBedmessagereamrk() == null) ? 0 : getBedmessagereamrk().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", bedmessageid=").append(bedmessageid);
        sb.append(", userid=").append(userid);
        sb.append(", usershareholderid=").append(usershareholderid);
        sb.append(", userdistributorsid1=").append(userdistributorsid1);
        sb.append(", userdistributorsid2=").append(userdistributorsid2);
        sb.append(", usermaintenanceid=").append(usermaintenanceid);
        sb.append(", bedBedTypeid=").append(bedBedTypeid);
        sb.append(", hospitalinfoid=").append(hospitalinfoid);
        sb.append(", hospitalinfoDepartmentid=").append(hospitalinfoDepartmentid);
        sb.append(", revenueid=").append(revenueid);
        sb.append(", bedmessagereamrk=").append(bedmessagereamrk);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
